package com.fuershiye.woman.monitor.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author yongyongdong
 *
 *         传统地域的划分
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "area")
public class Area extends LongIdEntity {

	// 地域级别 1：国家;2:省，直辖市;3:地级;4:区县;5:乡镇级;6:其他
	private Integer level;

	// 地域名称,省名称，地级市的名称，县的名称
	private String name;

	// 上级地域的 id
	private Long pid;
	// 同父域内的排序
	private Long sort;

	// 暂时不用到代码
	private String code;

	// 创建时间
	private Date ctime;
	// 修改时间
	private Date mtime;
	// 0:删除;1:正常
	private Integer status;

	public Long getSort() {
		return sort;
	}

	public void setSort(Long sort) {
		this.sort = sort;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getName() {
		return name;
	}

	public String getCode() {
		return code;
	}

	public Integer getLevel() {
		return level;
	}

	public Long getPid() {
		return pid;
	}

	public Date getCtime() {
		return ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public Integer getStatus() {
		return status;
	}

}
